
public class EqualityExpr2 {
	EqualityExpr3 ee3;
	EqualityExpr2 ee2;
	int lineNum;
	int charPos;
	
	public EqualityExpr2 ( EqualityExpr3 ee3, EqualityExpr2 ee2, int line, int charP){
		this.ee2 = ee2;
		this.ee3 = ee3;
		this.lineNum = line;
		this.charPos = charP;
	}
	public String toString(){
		String ret = "";

		String s = "";
		if (ee3 != null) {
			s +=  ee3.toString();
		}
		if (ee2 != null) {
			s += ee2.toString();
		}
//		
		return ret+s;
	}
	public void check(Type t) throws SemanticException {
		if (ee2 != null) {
			ee2.check(t);
		} 
		if (ee3 != null) {
			ee3.check(t);
		}
	}
}
